import { defHttp } from "@/utils/http";

// ERP 药品申领明细API
export const invtApplyApi = {
	// 获得药品申领明细分页
	invtApplyList: async (params: any) => {
		return await defHttp.get({ url: `/whs/invt-apply/page`, params });
	},
	// 新增药品申领明细
	invtApplyCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/invt-apply/create`, data });
	},

	// 修改药品申领明细
	invtApplyUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/invt-apply/update`, data });
	},

	// 删除药品申领明细
	invtApplyDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/invt-apply/delete?id=` + id });
	}
};
